package com.qq.server.model;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author weiBin
 * @date 2019/1/10
 */
public class ManageClientThread {
    public static ConcurrentHashMap hm = new ConcurrentHashMap();

    //向hm中添加一个客户端通讯线程
    public static void addClientThread(String userNo, SerConClientThread ct) {
        hm.put(userNo, ct);
    }

    public static SerConClientThread getClientThread(String userNo) {
        return (SerConClientThread) hm.get(userNo);
    }
}
